home *** CD-ROM | disk | FTP | other *** search
- /* $VER: 1.1 */
-
- options results /* enable return codes */
-
- if (left(address(), 6) ~= "GOLDED") then /* not started by GoldEd ? */
-
- address 'GOLDED.1'
-
- 'LOCK CURRENT RELEASE=4' /* lock GUI, gain access */
-
- if (RC ~= 0) then
-
- exit
-
- options failat 6 /* ignore warnings */
-
- signal on syntax /* ensure clean exit */
-
- /* ---------------------- INSERT YOUR CODE HERE ---------------------- */
-
- 'QUERY CAT'
-
- if (RESULT = "deutsch") then do
-
- STRING.sEXPLAIN = "Fehler erklären"
- STRING.sNUMBER = "Fehlercode:"
- end
- else do
-
- STRING.sEXPLAIN = "Explain error"
- STRING.sNUMBER = "Error code:"
- end
-
- 'REQUEST LONG TITLE="' || STRING.sEXPLAIN || '" BODY="' || STRING.sNUMBER || '" MIN=0 MAX=255 VAR=NUMBER'
-
- if (RC = 0) then
-
- 'HELP CATALOG="vbcc:doc/vbccmessages.guide" TOPIC="' || NUMBER || '"'
-
- /* ------------------------- END OF YOUR CODE ------------------------ */
-
- 'UNLOCK'
-
- exit
-
- SYNTAX:
-
- SAY "Error in line" SIGL ":" ERRORTEXT(RC)
-
- 'UNLOCK'
-
- /* /// "readoptions" */
-
- readoptions: procedure expose CONFIG. STRING. PROJECTNAME OBJFOLDER GSTFILE
-
- /* read compiler-specific options file in project folder (if any exists) */
-
- parse upper arg SOFTWARE
-
- if ((SOFTWARE = "") | (SOFTWARE = "SAS/C") | (SOFTWARE = "SAS/C-GNUMAKE")) then do
-
- if (exists("scoptions")) then do
-
- if open('HANDLE', "scoptions", 'READ') then do
-
- do until eof('HANDLE')
-
- DATA = readln('HANDLE')
-
- if (upper(left(DATA, 12)) = "PROGRAMNAME=") then do
-
- PROJECTNAME = compress(substr(DATA, 13), '"')
- end
- else if (left(DATA, 11) = "OBJECTNAME=") then
-
- OBJFOLDER = compress(substr(DATA, 12), '"')
-
- else if (left(DATA, 18) = "GLOBALSYMBOLTABLE=") then
-
- GSTFILE = compress(substr(DATA, 19), '"')
- end
-
- R = close('HANDLE')
- end
- end
- end
-
- return
-
- /* /// */
-